package ibm.websphere.monitor.domain;

import ibm.websphere.monitor.bean.JvmInfo;
import ibm.websphere.monitor.common.HibernateDaoHelper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <pre>
 *	@Description //
 * </pre>
 * @copyright www.timotai.net
 * @author 这家伙真懒
 * @date 2016-1-12
 **/
@Repository
public class JvmDomain extends HibernateDaoHelper<JvmInfo> {

    public List<Object> findJvm(String date,String type){
        String sql = "select * from jvmdata"+date.replace("-","")+" where serverName ='"+type+"'";
        System.out.println("SQL: " + sql);
        return this.findSqlClass(sql);
    }
}
